Passed
Push — master ( e1efef...d34f83 )
by
unknown
15:24
created

CustomForm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A constructor 0 6 1
1
import NodeForm from './NodeForm';
2
3
class CustomForm extends NodeForm {
4
    /**
5
     * @param {string} formID id of the respective form element
6
     *
7
     * @return {void}
8
     */
9
    constructor(formID) {
10
        super();
11
12
        this.$form = jQuery(`#${formID}`);
13
        this.$form.find('[name="cancel-button"]').on('click', this.hide.bind(this));
14
    }
15
}
16
17
export default CustomForm;
18